package com.ac.dao;

import com.ac.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> selectAll();

    User selectSingleUser(String username);

    int checkUserName(String username);

    int checkUserInfo(@Param("username") String username, @Param("password") String password, @Param("email") String email);

    int deleteByUsername(String username);

    int updateByUsername(User user);

}